<!--使用标签获取信息-->
#if(action == "edited")
<input type="hidden" name="bannerInfo.id" value="#(bannerInfo.id ??)"/>
<input type="hidden" name="bannerInfo.location" id="returnNum" value="#(bannerInfo.location ??)"/>
#else
<input type="hidden" name="bannerInfo.location" value="#(paramap.location[0] ??)"/>
#end
<div class="form-group" style="padding-top: 20px">
    <label class="col-sm-2 control-label">
        广告标题
    </label>
    <div class="col-sm-5">
        <input name="bannerInfo.title" class="form-control"  jtag='广告标题' type="text" value="#(bannerInfo.title ??)"/>
    </div>
</div>
<div class="hr-line-dashed"></div>
<!--<div class="form-group" style="padding-top: 20px">
    <label class="col-sm-2 control-label">
        广告位置
    </label>
    <div class="col-sm-5">
               <input type="radio" name="bannerInfo.location" value="1"  #if (bannerInfo.location ?? ==1) checked #end/>首页
               <input type="radio" name="bannerInfo.location" value="2" #if (bannerInfo.location ?? ==2) checked #end/>工作
               <input type="radio" name="bannerInfo.location" value="3" #if (bannerInfo.location ?? ==3) checked #end/>房屋
               <input type="radio" name="bannerInfo.location" value="4" #if (bannerInfo.location ?? ==4) checked #end/>婚恋
               <input type="radio" name="bannerInfo.location" value="5" #if (bannerInfo.location ?? ==5) checked #end/>顺风车
               <input type="radio" name="bannerInfo.location" value="6" #if (bannerInfo.location ?? ==6) checked #end/>其他
    </div>
</div>
<div class="hr-line-dashed"></div>-->
<div class="form-group" style="padding-top: 20px">
    <label class="col-sm-2 control-label">
        链接页面
    </label>
    <div class="col-sm-5">
        <input name="bannerInfo.file" class="form-control"  jtag='链接页面' type="text" value="#(bannerInfo.file ??)"/>
    </div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group" style="padding-top: 20px">
    <label class="col-sm-2 control-label">
        广告开始时间
    </label>
    <div class="col-sm-5">
        <input
            value="#jx_datetime({date:bannerInfo.start_time ??,infmt:'long',outfmt:'yyyy-MM-dd HH:mm:ss'})"
            class="input form-control" type="text"  timefor="start_time"
            onclick="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:ss', realDateFmt: 'yyyy-MM-dd HH:mm:ss', onpicked: onpicked})"/>
        <input name="bannerInfo.start_time" enpty="date" type="hidden" value="#(bannerInfo.start_time ??)" id="start_time"/>
    </div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group" style="padding-top: 20px">
    <label class="col-sm-2 control-label">
        广告结束时间
    </label>
    <div class="col-sm-5">
        <input
            value="#jx_datetime({date:bannerInfo.end_time ??,infmt:'long',outfmt:'yyyy-MM-dd HH:mm:ss'})"
            class="input form-control" type="text"  timefor="end_time"
            onclick="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:ss', realDateFmt: 'yyyy-MM-dd HH:mm:ss', onpicked: onpicked})"/>
        <input name="bannerInfo.end_time" enpty="date" type="hidden" value="#(bannerInfo.end_time ??)" id="end_time"/>
    </div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group" style="padding-top: 20px">
    <label class="col-sm-2 control-label">
        是否启用
    </label>
    <div class="col-sm-5">
        <input type="radio" name="bannerInfo.status" value="1"  #if (bannerInfo.status ?? ==1) checked #end/>是
        <input type="radio" name="bannerInfo.status" value="0" #if (bannerInfo.status ?? ==0) checked #end/>否
    </div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group" style="padding-top: 20px">
    <label class="col-sm-2 control-label">
        广告排序
    </label>
    <div class="col-sm-5">
        <input name="bannerInfo.order_no" class="form-control"  jtag='广告排序' type="text" value="#(bannerInfo.order_no ??)"/>
    </div>
</div>
<div class="hr-line-dashed"></div>
<div class="row clearfix upload_sc_main">
    <div class="upload_panel-body" style="padding: 0 15px;">
        <ul class="list-group" id='ulFiles'>
            #if (action =='edited')
            #set(fileInfos = com.chaizeng.cz.kit.StrKit::jsonToList(bannerInfo.image)) 
            #for(fileInfo : fileInfos)
            #set(path = fileInfo.filePath)

            #set(path =(jxwebpath.item)+'jxsm_file/'+path)
            #include("/common/layout/upload_file_layout.html",filenum=(params[0] ?? 0),fileName=path)
            #end
            #end
        </ul>
    </div>
    <div class="upload_panel-footer" style="text-align: right;">
        #if (addview ?? true)
        #jx_button({value:"public.addAttachments",tag:"fileadd",id:"fileadd", class:"btn btn-info btn-xs but_jx"})
        #end
    </div>
</div>


